package cn.pn.project.mapper.schedule;


import cn.pn.project.pojo.schedule.Seat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.jdbc.SQL;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface SeatDao {

    /**
     * 根据场地id查询座位信息
     * @param placeId
     * @return
     * @throws SQLException
     */
    public List<Seat> getSeatByPlaceId(@Param("placeId") Integer placeId) throws SQLException;


    /**
     * 根据座位id查询座位信息，多个座位id用，隔开
     * @param seatId
     * @return
     * @throws SQLException
     */
    public List<Seat> getAllSeatInfo(@Param("seatId") String seatId) throws SQLException;


    /**
     * 多条件查询座位对象（谢耀翔）
     * @param param
     * @return
     * @throws Exception
     */
    public Seat getSeatByMap(Map<String,Object> param)throws Exception;

}
